home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- set the visible of sprite 11 to rollOver(4)
- set the visible of sprite 12 to rollOver(5)
- set the visible of sprite 18 to rollOver(5)
- set the visible of sprite 13 to rollOver(6)
- set the visible of sprite 19 to rollOver(6)
- set the visible of sprite 14 to rollOver(7)
- set the visible of sprite 20 to rollOver(7)
- set the visible of sprite 21 to rollOver(8)
- set the visible of sprite 15 to rollOver(8)
- set the visible of sprite 16 to rollOver(9)
- set the visible of sprite 22 to rollOver(9)
- set the cursor of sprite 4 to 280
- set the cursor of sprite 5 to 280
- set the cursor of sprite 6 to 280
- set the cursor of sprite 7 to 280
- set the cursor of sprite 8 to 280
- set the cursor of sprite 9 to 280
- set the cursor of sprite 25 to 280
- set the cursor of sprite 26 to 280
- set the cursor of sprite 27 to 280
- set the cursor of sprite 28 to 280
- set the cursor of sprite 29 to 280
- set the cursor of sprite 31 to 280
- set the cursor of sprite 10 to 280
- go("db2")
- end
-
- on keyDown
- global gAlpha
- cursor(4)
- case the key of
- "a":
- set i to "A"
- "b":
- set i to "B"
- "c":
- set i to "C"
- "d":
- set i to "D"
- "e":
- set i to "E"
- "f":
- set i to "F"
- "g":
- set i to "G"
- "h":
- set i to "H"
- "i":
- set i to "I"
- "j":
- set i to "J"
- "k":
- set i to "K"
- "l":
- set i to "L"
- "m":
- set i to "M"
- "n":
- set i to "N"
- "o":
- set i to "O"
- "p":
- set i to "P"
- "q":
- set i to "Q"
- "r":
- set i to "R"
- "s":
- set i to "S"
- "t":
- set i to "T"
- "u":
- set i to "U"
- "v":
- set i to "V"
- "w":
- set i to "W"
- "x":
- set i to "X"
- "y":
- set i to "Y"
- "z":
- set i to "Z"
- "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z":
- set i to the key
- end case
- put i
- put i into field "alphakey"
- UpdateAlpha()
- end
-
- on alertIt
- beep()
- alert("You pressed an A")
- end
-
- on UpdateAlpha
- global gTB
- puppetSound(1, "pioolb")
- mSetCriteria(gTB, "appname", "start", field "alphaKey")
- mSelect(gTB)
- set n to mSelectCount(gTB)
- if n <> 0 then
- put n into field "NumberFound"
- put mGetField(gTB, "category") into field "category"
- put mGetField(gTB, "appname") into field "appname"
- put mGetField(gTB, "highs") into field "highs"
- put mGetField(gTB, "lows") into field "lows"
- put mGetField(gTB, "BottomLine") into field "BottomLine"
- put field "Ratings" & "%" into field "Rating"
- put mGetField(gTB, "AlphSortKey") into field "AlphSortKey"
- put mGetField(gTB, "CoName") into field "CoName"
- put mGetField(gTB, "Address") into field "Address"
- put mGetField(gTB, "City") into field "City"
- put mGetField(gTB, "State") into field "State"
- put mGetField(gTB, "Zip") into field "Zip"
- put mGetField(gTB, "Phone") into field "Phone"
- put mGetField(gTB, "Phone2") into field "Phone2"
- put mGetField(gTB, "email") into field "email"
- else
- CheckAlphaSearch()
- end if
- showSelection()
- end
-
- on CheckAlphaSearch
- global gAlpha
- set gAlpha to gAlpha + 1
- if gAlpha > 26 then
- set gAlpha to 1
- end if
- put char gAlpha of field "alphaBet" into field "alphakey"
- UpdateAlpha()
- end
-